\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{
\section{Zebulon::CoralAHRS::Message Class Reference}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message}\index{Zebulon::CoralAHRS::Message@{Zebulon::CoralAHRS::Message}}
}


Class for describing/defining messages sent to/from the Coral AHRS.  


{\ttfamily \#include $<$message.h$>$}Inheritance diagram for Zebulon::CoralAHRS::Message::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=10cm]{class_zebulon_1_1_coral_a_h_r_s_1_1_message}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum {\bfseries From} \{ \par
{\bfseries DataQuat} =  0x21, 
{\bfseries DataEuler} =  0x22, 
{\bfseries DataMatrix} =  0x23, 
{\bfseries DataSensors} =  0x24, 
\par
{\bfseries DataQuatAndSensors} =  0x25, 
{\bfseries DataEulerAndSensors} =  0x26, 
{\bfseries DataMatrixAndSensors} =  0x27, 
{\bfseries DataRawSensors} =  0x28, 
\par
{\bfseries DataQuatAndRawSensors} =  0x29, 
{\bfseries DataEulerAndRawSensors} =  0x2A, 
{\bfseries DataMatrixAndRawSensors} =  0x2B, 
{\bfseries IDString} =  0x15, 
\par
{\bfseries Configuration} =  0x1A, 
{\bfseries Calibration} =  0x1C, 
{\bfseries Pong} =  0xEE
 \}
\item 
enum {\bfseries To} \{ \par
{\bfseries SetOutputMode} =  0x01, 
{\bfseries SetCalibration} =  0x02, 
{\bfseries CaptureGyroBias} =  0x03, 
{\bfseries RequestID} =  0x05, 
\par
{\bfseries RestoreUserSettings} =  0x06, 
{\bfseries RestoreFactorySettings} =  0x07, 
{\bfseries SetOutputRateDivisor} =  0x08, 
{\bfseries SetSerialRate} =  0x09, 
\par
{\bfseries RequestConfiguration} =  0x0A, 
{\bfseries RequestCalibration} =  0x0C, 
{\bfseries SaveSettings} =  0x0F, 
{\bfseries Ping} =  0xDD
 \}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a006956e9d5085ec053f20da9047dda7a}{
typedef std::vector$<$ \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Message} $\ast$ $>$ \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a006956e9d5085ec053f20da9047dda7a}{List}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a006956e9d5085ec053f20da9047dda7a}

\begin{DoxyCompactList}\small\item\em List of messages. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a2d1ed5a7dc7c000f42d9ed6838e2b20a}{
{\bfseries Message} (const unsigned char type)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a2d1ed5a7dc7c000f42d9ed6838e2b20a}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_acf703e9753ab82c903da1bf97f1d8d11}{
int {\bfseries Write} (CxUtils::Packet \&packet) const }
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_acf703e9753ab82c903da1bf97f1d8d11}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_af295a5da0cb0d5cb05f5800b5bf430ef}{
virtual int {\bfseries WriteMessageBody} (CxUtils::Packet \&packet) const =0}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_af295a5da0cb0d5cb05f5800b5bf430ef}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a56724d6ae033a1f98b51fc48dee3af41}{
int {\bfseries Read} (const CxUtils::Packet \&packet)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a56724d6ae033a1f98b51fc48dee3af41}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_aa43f78726858b2ac7ce5fdebc085b7cd}{
virtual int {\bfseries ReadMessageBody} (const CxUtils::Packet \&packet)=0}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_aa43f78726858b2ac7ce5fdebc085b7cd}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a2884b971b41ba0f23abdba67804f7439}{
virtual \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Message} $\ast$ {\bfseries Clone} () const =0}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a2884b971b41ba0f23abdba67804f7439}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_acb2c3ff838a869a6b6c41806964ef161}{
virtual void {\bfseries Print} () const }
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_acb2c3ff838a869a6b6c41806964ef161}

\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a58520ebba042bcfe9a40647a8942c346}{
static unsigned int {\bfseries ExtractMessage} (const unsigned char $\ast$buffer, const unsigned int length, unsigned char \&type, CxUtils::Packet \&message)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a58520ebba042bcfe9a40647a8942c346}

\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a9c65b077e2cdf26d1b9f482ec91f98d3}{
static unsigned char {\bfseries CalculateChecksum} (const CxUtils::Packet \&packet)}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a9c65b077e2cdf26d1b9f482ec91f98d3}

\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a55f707d7703a2db70f461fc4712a1ed0}{
const unsigned char \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a55f707d7703a2db70f461fc4712a1ed0}{mMessageType}}
\label{class_zebulon_1_1_coral_a_h_r_s_1_1_message_a55f707d7703a2db70f461fc4712a1ed0}

\begin{DoxyCompactList}\small\item\em Type of Coral \hyperlink{class_zebulon_1_1_coral_a_h_r_s_1_1_message}{Message}. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Class for describing/defining messages sent to/from the Coral AHRS. 

The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
C:/Users/Matt/Documents/School/Robotics/zebulon/v2/coralahrs/include/coralahrs/message.h\end{DoxyCompactItemize}
